package com.hao1st.service1.biz.conversation.controller;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/c")
public class ConversationController {

    @GetMapping("/session")
    public String index(HttpServletRequest request) {

        HttpSession session = request.getSession();
        return "service1的会话ID为：" + session.getId();
    }
}
